<template>
	<!-- <rm-layout :title="title" titleColor="#f7f7f7"> -->
		<web-view :webview-styles="webviewStyles" :src="webUrl"></web-view>
	<!-- </rm-layout> -->
</template>

<script setup lang="ts">
	
	import { ref, onUnmounted, watch, Ref } from "vue";
	import { onLoad, onShow } from "@dcloudio/uni-app";
	const webUrl: any = ref('')
	const title: any = ref('AI机器人')
	const webviewStyles = ref({ progress: { color: '#FF3333' } }) 
	//离开页面后停止搜索附近蓝牙设备
	onUnmounted(() => {

	});

	onLoad((options)=>{
		console.log(options)
		webUrl.value = options.url
		title.value= options.title
	})
</script>

<style lang="scss" scoped>

</style>